package com.hall.items.repo;

import com.hall.items.aggr.MyPlayerWeaponPack;
import com.hall.items.dto.MyPlayerWeaponPackDTO;
import erp.repository.Store;
import erp.repository.impl.dto.DTOProxyStore;

public class MyPlayerWeaponPackDTOProxyStore extends DTOProxyStore<MyPlayerWeaponPack, MyPlayerWeaponPackDTO, Long> {

    public MyPlayerWeaponPackDTOProxyStore(Store<MyPlayerWeaponPackDTO, Long> dtoStore) {
        super(dtoStore);
    }

    @Override
    protected MyPlayerWeaponPack toEntity(MyPlayerWeaponPackDTO myPlayerWeaponPackDTO) {
        return myPlayerWeaponPackDTO.toEntity();
    }

    @Override
    protected MyPlayerWeaponPackDTO toDTO(MyPlayerWeaponPack myPlayerWeaponPack) {
        return new MyPlayerWeaponPackDTO(myPlayerWeaponPack);
    }
}
